GeanyDocument

Structure for representing an open tab with all its properties.

Members

Variables

changed
gboolean changed;

Whether this document has been changed since it was last saved.

editor
GeanyEditor* editor;

< The editor associated with the document.

encoding
gchar* encoding;

The encoding of the document, must be a valid string representation of an encoding, can * be retrieved with @ref encodings_get_charset_from_index.

file_name
gchar* file_name;

The UTF-8 encoded file name. * Be careful; glibc and GLib file functions expect the locale representation of the * file name which can be different from this. * For conversion into locale encoding, you can use @ref utils_get_locale_from_utf8(). * @see real_path.

file_type
GeanyFiletype* file_type;

The filetype for this document, it's only a reference to one of the elements of the global * filetypes array.

has_bom
gboolean has_bom;

Internally used flag to indicate whether the file of this document has a byte-order-mark.

has_tags
gboolean has_tags;

Whether this document supports source code symbols(tags) to show in the sidebar.

id
guint id;

A pseudo-unique ID for this document. * @c 0 is reserved as an unused value. * @see document_find_by_id().

index
gint index;

< Index in the documents array.

is_valid
gboolean is_valid;

Flag used to check if this document is valid when iterating @ref GeanyData::documents_array.

priv
GeanyDocumentPrivate* priv;
Undocumented in source.
readonly
gboolean readonly;

Whether this document is read-only.

real_path
gchar* real_path;

The link-dereferenced, locale-encoded file name. * If non-NULL, this indicates the file once existed on disk (not just as an * unsaved document with a filename set). * * @note This is only assigned after a successful save or open - it should * not be set elsewhere. * @see file_name.

tm_file
TMSourceFile* tm_file;

TMSourceFile object for this document, or @c NULL.

Meta